import {createSlice} from "@reduxjs/toolkit";
import useSetStorage from "@/hooks/useSetStorage";

export const videoPublishSlice = createSlice({
    name: "videoPublishSlice",
    initialState: () => {
      return {
        params: {},
        videoList: []
      };

    },
    reducers: {
      set_params(state,action){
        state.params = action.payload
      },
      set_videoList(state,action){
        state.videoList = action.payload
      }
    }
});

export const {
  set_params,
  set_videoList,
} = videoPublishSlice.actions;